package com.llb666.shop.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 订单服务.
 *
 * @author llb666
 */
@EnableDiscoveryClient // 开启注册服务，把商品服务注册到nacos.
@EnableFeignClients     // 开启feign服务通信
@EnableAsync
@MapperScan(basePackages = "com.llb666.shop.order.infrastructure.mapper")
@ComponentScan(basePackages = {"com.llb666"})
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) //自动装配，排除安全框架的登录验证
public class OrderServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class, args);
        System.out.println
                ("       ｡ﾟﾟ･｡･ﾟﾟ｡\n" +
                        "       ﾟ。    ｡ﾟ\n" +
                        "         ﾟ･｡･ﾟ\n" +
                        "       ︵        ︵\n" +
                        "     (    ╲   /   /\n" +
                        "      ╲     ╲/   /\n" +
                        "        ╲     ╲ /\n" +
                        "      ╭ ͡ ╲      ╲\n" +
                        "    ╭ ͡╲    ╲     ﾉ\n" +
                        "  ╭ ͡╲   ╲      ╱\n" +
                        "   ╲   ╲      ╱\n" +
                        "     ╲      ╱\n" +
                        "       ︶ " + ">>>>>>>100%,订单服务启动成功!");
    }
}
